package demo3;

public class Dog extends Animal implements IRun,ISwim{
    public Dog(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃骨头....");
    }

    @Override
    public void iRun() {
        System.out.println(this.name + "正在使用狗腿腿跑步....");
    }

    @Override
    public void iSwim() {
        System.out.println(this.name + "正在使用狗腿腿游泳....");
    }
}
